package com.offcn.service.impl;

import com.offcn.dao.GirlDao;
import com.offcn.pojo.Girl;
import com.offcn.service.GirlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GirlServiceImpl implements GirlService {

    @Autowired
    private GirlDao girlDao;

    @Override
    public List<Girl> findAll() {
        List<Girl> all = girlDao.findAll();
        return all;
    }

    @Override
    public List<Girl> findByGirlQuery(Girl girl) {
        return girlDao.findByGirlQuery(girl);
    }

    @Override
    public boolean save(Girl girl) {
        return girlDao.save(girl)>0;
    }
}
